<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="css/login2.css">
<link href="css/bootstrap.min.css" rel="stylesheet">
<script type="text/javascript" src="js/jquery.min.js"></script>

<title>小米商城首页</title>
</head>
<body>

<!--网站中间内容开始-->
<div id="thred">
      <img src="image/banner2.jpg" width="1230" height="460" /> 
</div>
   <div id="forth">
   		<span>
        	<a href=""><img src="image/hjh_01.gif" /></a>
            <a href=""><img src="image/hjh_02.gif" /></a>
            <a href=""><img src="image/hjh_03.gif" /></a>
            <a href=""><img src="image/hjh_04.gif" /></a>
            <a href=""><img src="image/hjh_05.gif" /></a>
            <a href=""><img src="image/hjh_06.gif" /></a>
        </span>
        <a href="" id="a_left"><img src="image/hongmi4x.png" width="316" height="170" /></a>
        <a href="" id="a_left"><img src="image/xiaomi5.jpg" width="316" height="170" /></a>
    	<a href="" id="a_left"><img src="image/pinghengche.jpg" width="316" height="170" /></a>
   </div>
   <div id="fifth">
   		<span id="fif_text">小米明星单品</span>
   </div>
    <div id="sixth">
        <template v-for="product in list">
            <span style="margin-left:0px; border-top:#ffa500 1px solid">
            	<a href="" id="siximg"><img :src="product.image" width="234" height="234" /></a>
            	<a href="" id="na">{{product.name}}</a>
                <p id="chip">{{product.info}}</p>
                <p id="pri">{{product.price}}</p>
            </span>
        </template>
    </div>
   <!-- 底部 -->

</body>
</html>
<script src="js/vue.js"></script>
<script src="js/axios.js"></script>
<script src="js/auth.js"></script>

<script>
    axios.get("/product/list").then(function (res) {
        if (res.data.code=="10000"){
            v.list = res.data.data;
        }
    });

    var v = new Vue({
        el: "#sixth",
        data: {
            list: []
        },
        methods: {

        }
    });
</script>
